package com.dinpay.plugin.activity;

import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Bundle;
import android.text.InputFilter;
import android.text.InputFilter.LengthFilter;
import android.util.DisplayMetrics;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.dinpay.plugin.c.a.a;
import com.dinpay.plugin.d.f;
import com.dinpay.plugin.d.i;
import com.dinpay.plugin.widget.CleanEditText;
import java.io.ByteArrayInputStream;

public class BindMobileActivity extends DinpayBaseActivity
{
  public com.dinpay.plugin.b.d a;
  public String b;
  public String c;
  public String d;
  public String e;
  private CleanEditText f;
  private String g;
  private Button h;
  private String i;
  private View.OnClickListener j = new d(this);

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    int k = (int)(0.5F + 30.0F * getResources().getDisplayMetrics().density);
    int m = (int)(0.5F + 240.0F * getResources().getDisplayMetrics().density);
    int n = (int)(0.5F + 120.0F * getResources().getDisplayMetrics().density);
    LinearLayout.LayoutParams localLayoutParams1 = new LinearLayout.LayoutParams(-1, -1);
    localLayoutParams1.gravity = 17;
    LinearLayout localLinearLayout1 = new LinearLayout(this);
    localLinearLayout1.setLayoutParams(localLayoutParams1);
    localLinearLayout1.setOrientation(1);
    localLinearLayout1.setBackgroundColor(Color.parseColor("#f2f2f2"));
    RelativeLayout localRelativeLayout = new RelativeLayout(this);
    localRelativeLayout.setBackgroundDrawable(i.a(getResources(), BindMobileActivity.class, a.a.n));
    localRelativeLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, (int)(0.5F + 40.0F * getResources().getDisplayMetrics().density)));
    RelativeLayout.LayoutParams localLayoutParams2 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams2.addRule(9);
    localLayoutParams2.addRule(15);
    localLayoutParams2.leftMargin = 10;
    ImageView localImageView1 = new ImageView(this);
    localImageView1.setScaleType(ImageView.ScaleType.CENTER);
    localImageView1.setAdjustViewBounds(true);
    localImageView1.setPadding(15, 10, 0, 10);
    localImageView1.setId(200001);
    localImageView1.setBackgroundDrawable(i.a(getResources(), BindMobileActivity.class, a.a.i));
    localImageView1.setOnClickListener(this.j);
    RelativeLayout.LayoutParams localLayoutParams3 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams3.addRule(13);
    TextView localTextView1 = new TextView(this);
    localTextView1.setText("订单支付");
    localTextView1.setTextSize(18.0F);
    localTextView1.setTextColor(Color.parseColor("#FFFFFF"));
    localTextView1.setId(1000002);
    localTextView1.setGravity(17);
    RelativeLayout.LayoutParams localLayoutParams4 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams4.addRule(11);
    localLayoutParams4.addRule(15);
    localLayoutParams4.rightMargin = 10;
    ImageView localImageView2 = new ImageView(this);
    localImageView2.setScaleType(ImageView.ScaleType.CENTER);
    localImageView2.setAdjustViewBounds(true);
    localImageView2.setId(100001);
    localImageView2.setBackgroundDrawable(i.a(getResources(), BindMobileActivity.class, a.a.m));
    localRelativeLayout.addView(localImageView1, localLayoutParams2);
    localRelativeLayout.addView(localTextView1, localLayoutParams3);
    localRelativeLayout.addView(localImageView2, localLayoutParams4);
    localLinearLayout1.addView(localRelativeLayout);
    LinearLayout.LayoutParams localLayoutParams5 = new LinearLayout.LayoutParams(m, n);
    localLayoutParams5.topMargin = k;
    localLayoutParams5.bottomMargin = k;
    localLayoutParams5.leftMargin = k;
    localLayoutParams5.rightMargin = k;
    localLayoutParams5.gravity = 1;
    LinearLayout localLinearLayout2 = new LinearLayout(this);
    localLinearLayout2.setOrientation(0);
    localLinearLayout2.setPadding(0, 10, 0, 10);
    LinearLayout.LayoutParams localLayoutParams6 = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams6.gravity = 17;
    localLayoutParams6.setMargins(10, 10, 0, 10);
    TextView localTextView2 = new TextView(this);
    localTextView2.setGravity(17);
    localTextView2.setTextSize(18.0F);
    localTextView2.setTextColor(Color.parseColor("#ff50494a"));
    localTextView2.setText("输入银行卡绑定的手机号码");
    localLinearLayout2.addView(localTextView2, localLayoutParams6);
    localLinearLayout1.addView(localLinearLayout2);
    LinearLayout localLinearLayout3 = new LinearLayout(this);
    localLinearLayout3.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams7 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView3 = new ImageView(this);
    localImageView3.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout3.addView(localImageView3, localLayoutParams7);
    localLinearLayout1.addView(localLinearLayout3);
    LinearLayout localLinearLayout4 = new LinearLayout(this);
    localLinearLayout4.setOrientation(0);
    localLinearLayout4.setBackgroundColor(Color.parseColor("#FFFFFF"));
    LinearLayout.LayoutParams localLayoutParams8 = new LinearLayout.LayoutParams(-1, -2);
    localLayoutParams8.gravity = 17;
    localLayoutParams8.setMargins(10, 0, 10, 0);
    this.f = new CleanEditText(this);
    this.f.showType = false;
    this.f.showMobileType = false;
    this.f.setGravity(17);
    this.f.setBackgroundColor(Color.parseColor("#FFFFFF"));
    this.f.setTextSize(18.0F);
    this.f.setTextColor(Color.parseColor("#ff50494a"));
    this.f.setSingleLine();
    CleanEditText localCleanEditText = this.f;
    InputFilter[] arrayOfInputFilter = new InputFilter[1];
    arrayOfInputFilter[0] = new InputFilter.LengthFilter(11);
    localCleanEditText.setFilters(arrayOfInputFilter);
    this.f.setInputType(3);
    localLinearLayout4.addView(this.f, localLayoutParams8);
    localLinearLayout1.addView(localLinearLayout4);
    LinearLayout localLinearLayout5 = new LinearLayout(this);
    localLinearLayout5.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams9 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView4 = new ImageView(this);
    localImageView4.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout5.addView(localImageView4, localLayoutParams9);
    localLinearLayout1.addView(localLinearLayout5);
    LinearLayout localLinearLayout6 = new LinearLayout(this);
    localLinearLayout6.setOrientation(0);
    localLinearLayout6.setPadding(0, 0, 0, 0);
    LinearLayout.LayoutParams localLayoutParams10 = new LinearLayout.LayoutParams(-1, (int)(0.5F + 45.0F * getResources().getDisplayMetrics().density));
    localLayoutParams10.gravity = 17;
    localLayoutParams10.setMargins(10, 30, 10, 10);
    this.h = new Button(this);
    this.h.setBackgroundColor(Color.parseColor("#258EE5"));
    this.h.setTextColor(Color.parseColor("#FFFFFF"));
    this.h.setTextSize(18.0F);
    this.h.setText("下一步");
    this.h.setOnTouchListener(new e(this));
    localLinearLayout6.addView(this.h, localLayoutParams10);
    localLinearLayout1.addView(localLinearLayout6);
    setContentView(localLinearLayout1);
    ExitApplication.a().a(this);
    Intent localIntent = getIntent();
    if (localIntent != null)
    {
      this.i = localIntent.getStringExtra("xml");
      this.b = localIntent.getStringExtra("gateway_id");
      this.c = localIntent.getStringExtra("orderkey");
      this.d = localIntent.getStringExtra("merchantname");
      this.e = localIntent.getStringExtra("ActivityName");
    }
    if (this.i == null)
    {
      c("商家请求报文不能为空");
      return;
    }
    ByteArrayInputStream localByteArrayInputStream = new ByteArrayInputStream(this.i.getBytes());
    try
    {
      this.a = f.b(localByteArrayInputStream);
      return;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
      c("商家请求报文格式有误");
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.dinpay.plugin.activity.BindMobileActivity
 * JD-Core Version:    0.6.2
 */